﻿using Microsoft.AspNetCore.Mvc;
using MyAbpFrame.Application.Contracts.User;
using MyAbpFrame.Application.User;
using MyAbpFrame.Application.User.Dto;
using MyAbpFrame.Domain.UserInfo;
using System.Threading.Tasks;

namespace MyAbpFrame.WebMvc.Controllers
{
    public class LoginController : Controller
    {
        private readonly IUserAppService _userAppService;
        public LoginController(IUserAppService userAppService)
        {
            _userAppService = userAppService;
        }
        public IActionResult Index()
        {
            return View();
        }
        public async Task<UserDto> CheckLogin(string userNo, string password)
        {
            var user = await _userAppService.Get(userNo, password);
            return user;
        }
    }
}
